//
//  ZJTableViewCell.m
//  HimalayaMusic
//
//  Created by dllo on 16/1/15.
//  Copyright © 2016年 WXCLegendary. All rights reserved.
//

#import "ZJTableViewCell.h"

@implementation ZJTableViewCell


-(void)setModel:(ZJModel *)model {
    if (_model != model) {
        _model = model;
    }
    [self.imageViews sd_setImageWithURL:[NSURL URLWithString:model.coverMiddle]];
    self.titleLabel.text = model.title;
    NSString *str = [NSString stringWithFormat:@"%ld", model.updatedAt.integerValue / 1000];
    
    
    self.introLabel.text = [HeperTools shareGetUTCFormateDate:(str)];
    self.trackLabel.text = model.tracks.stringValue;
    self.playLabel.text = [HeperTools SharePlayCount:model.playTimes.intValue];
    self.playImage.image = [UIImage imageNamed:@"find_albumcell_play@2x"];
    self.trackImage.image = [UIImage imageNamed:@"album_tracks@2x"];
}

- (void)awakeFromNib {
    // Initialization code
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
